<template>
  <Table :loading="loading" :data="users" :columns="columns">
    <template slot-scope="{ row, column, index}" slot="action">
      <Button @click="remove(row)">删除</Button>
      <Button @click="pause(row)">暂停</Button>
      <Button @click="enable(row)">启用</Button>
    </template>
  </Table>
</template>

<script>
export default {
  data() {
    const columns = [
      {
        title: "ID",
        key: "id"
      },
      {
        title: "用户名",
        key: "username"
      },
      {
        title: "昵称",
        key: "nickname"
      },
      {
        title: "邮箱",
        key: "email"
      },
      {
        title: "创建时间",
        key: "username"
      },
      {
        title: "更新时间",
        key: "username"
      },
      {
        title: "操作",
        slot: "action"
      }
    ];
    return {
      columns
    };
  },
  methods: {
    resetPwd(row) {}
  }
};
</script>

<style></style>
